package pl.netcoffee.android.finserDroid;

public class FinserPlAPICommand extends ApiCommand {

	public FinserPlAPICommand(ServiceProvider api, String defaultCashAccount,
			String defaultCardAccount) {
		super(api, defaultCashAccount, defaultCardAccount);
		
	}
	
	
	public boolean registerDefaultCashPayment(String amount, String description){
		
		String command = "$" + defaultCashAccount + " -" + amount + " " + description;
		
		sendCommand(command);
		
		return true;
	}
	
	public boolean registerDefaultCardPayment(String amount, String description){
		
		String command = "$" + defaultCardAccount + " -" + amount + " " + description;
		
		sendCommand(command);
		
		return true;
	}
	
	public boolean registerAtm(String amount, String description){
		
		String command = "$" + defaultCardAccount + " > $" + defaultCashAccount + " " + amount + " " + description;
		
		sendCommand(command);
		
		return true;
	}

}
